package com.it.jzs.controller.applet;

import com.it.jzs.dao.admin.AdminTypeMapper;
import com.it.jzs.service.applet.AppletTypeService;
import com.it.jzs.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("applet")
@CrossOrigin
public class AppletTypeController {
    @Resource
    private AppletTypeService appletTypeService;

    @GetMapping("type")// 获取所有分类
    public Result<Object> selectTypeList() {
        Result<Object> result = appletTypeService.selectTypeList();
        return result;

    }
    @GetMapping("/index/type")// 获取所有分类
    public Result<Object> selectIndexTypeList() {
        Result<Object> result = appletTypeService.selectIndexTypeList();
        return result;

    }
//    @GetMapping("type/{id}")// 获取所有分类
//    public Result<Object> selectTypeList() {
//        Result<Object> result = appletTypeService.selectTypeList();
//        return result;
//
//    }
}
